<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<%@ include file="/page/resform.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").validate();
});
</script>
</head>
<body>
	<div class="body-box">
		<div class="rhead">
			<div class="rpos"> 权限管理 - 列表</div>
			<div class="clear"></div>
		</div>
		<form id="form" method="post" action="${ctx }/acl/authority!save.action">
			<input type="hidden" name="resId" value="${resId}"/>
			<input type="hidden" name="eid" value="${id}"/>	
			<input type="hidden" name="id" value="${id}"/>	
			<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
				<tr>
					<td width="12%" class="pn-flabel">权限</td>
					<td width="38%" class="pn-fcontent">
							<input type="text" maxlength="25" name="name" value="${name }" validate="{required:true,maxlength:25}"/>
					</td>
					<td width="12%" class="pn-flabel">名称</td>
					<td width="38%" class="pn-fcontent">
						<input type="text" maxlength="25"  name="displayName" value="${displayName }" validate="{required:true,maxlength:25}"/>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="pn-fbutton">
						<input type="submit" value="新增" class="ps-btn" />
					</td>
				</tr>
			</table>
		</form>
		<s:actionmessage />
		<form id="dataListForm" method="post">
			<table class="pn-ltable" style="" width="100%" cellspacing="1"
				cellpadding="0" border="0">
				<thead class="pn-lthead">
					<tr>					
						<th>权限</th>
						<th>名称</th>
						<th>操作选项</th>
					</tr>
				</thead>
				
				<tbody class="pn-ltbody">
					<s:iterator value="list">
						<tr align="center">
							<td>${name}</td>
							<td>${displayName}</td>
							<td width="120">
								<a href="${ctx }/acl/authority!input.action?eid=${id}&resId=${resId}" class="pn-opt">修改</a> |  
								<a href="${ctx }/acl/authority!delete.action?eid=${id}&resId=${resId}" class="pn-opt delete">删除</a>								
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
		</form>
	</div>
</body>
</html>